<template>
  <div>
    <div id="video-container"></div>
  </div>
</template>

<script>
import  EZUIKit from 'ezuikit-js';
export default {
  name: "Rtmp",
  components: {},
  data() {
    return {
      player: null,
    };
  },
  computed: {},
  created() {
    this.initVideo();
  },
  methods: {
    initVideo(){
      this.player = new EZUIKit.EZUIKitPlayer({
        id: 'video-container', // 视频容器ID
        accessToken: 'at.6ja38k6h6dz0q2033thb7ls8581ztqsk-5mmrbwej3a-17rwtsw-bvfhqbheo',
        url: 'ezopen://H12345678@open.ys7.com/F73901808/1.hd.live',
      })
    }
  },
};
</script>

<style scoped lang="scss">

</style>
